package com.onec.service.channel.service.impl;

import com.onec.service.channel.dao.ChannelKeyRepository;
import com.onec.service.channel.entity.ChannelKey;
import com.onec.service.channel.service.ChannelKeyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 机构密钥信息。
 *
 * @author onec
 */
@Service
public class ChannelKeyServiceImpl implements ChannelKeyService {

    @Autowired
    ChannelKeyRepository channelKeyRepository;

    @Override
    public ChannelKey findByChannelId(long channelId) {
        return channelKeyRepository.findByChannelId(channelId);
    }
}
